/**
 * Copyright (c) 2010 Axa Holding Belgium, SA. All rights reserved.
 * This software is the confidential and proprietary information of the AXA Group.
 */
package chabernac.tools;

public class ArrayTools {
  public static byte[] arrayGrow(byte[] anArray, int aGrow){
    byte[] theNewArray = new byte[anArray.length + aGrow];
    System.arraycopy( anArray, 0, theNewArray, 0, anArray.length );
    return theNewArray;
  }
  
  public static byte[] trim(byte[] anArray, int aLength){
    byte[] theNewArray = new byte[aLength];
    System.arraycopy( anArray, 0, theNewArray, 0, theNewArray.length );
    return theNewArray;
  }
}
